<?php $this->load->view('common/default_header.php');?>
<?php $this->load->view('common/invite_nav.php');?>
<section>
    <ul class="trade-head">
		<?php if($type!='yk'){?>
        <li class="br text-center">
            <h4>当日<?php echo $type=="yk"?"盈亏":"交易额";?></h4>
            <h2>￥<?php echo isset($today_deal[$type])?$today_deal[$type]:0.00;?></h2>
        </li>
		<?php }?>
        <li class="text-center" style="width: <?php echo $type=="yk"?"100%":"50%";?>;">
            <h4>近30日<?php echo $type=="yk"?"盈亏":"交易额";?></h4>
            <h2>￥<?php echo isset($month_deal[$type])?$month_deal[$type]:0.00;?></h2>
        </li>
        <div class="clear"></div>
    </ul>
	<?php if(!empty($day_data))foreach($day_data as $date=>$cash){?>
    <div class="mx-con">
        <dl>
            <dt><span>日期：<?php echo date("m-d",strtotime($date));?></span><span><?php echo $type=="yk"?"盈亏":"交易额";?>：￥<?php echo $cash;?></span></dt>
			<?php if(!empty($details))foreach($details as $items){?>
            <?php if(isset($items[$date])){?>
            <dd><span>微信ID：<?php echo $items['nickname'];?></span><span>日<?php echo $type=="yk"?"盈亏":"交易额";?>：￥<?php echo $items[$date];?></span></dd>
			<?php }}?>
        </dl>
    </div>
	<?php }?>
    <div class="tj_tip">
        <p>提示：只提供最近一个月的数据查询</p>
    </div>
</section>


<?php $this->load->view('common/wx_share.php');?>